package com.mgq.generic;

/**
 * @author MaGuangQi
 *
 * @date 2021-12-26 11:12
 **/
public class Cat extends Animal{
    private int age;

    public Cat(String name, int age) {
        super(name);
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "age=" + age +
                "} " + super.toString();
    }
}
